package jwanalytics.ejb.webhouse;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="page_dimension")
@SequenceGenerator(name="c_page_sequence", sequenceName="c_page_sequence")
public class PageDimension {
	
	/** Id or primary key field of this class. */
	private Long id;
	
	/** This is the page being visited. */
	String page;
	
	@Id
 	@Column(name="page_key")
 	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="c_page_sequence") 	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="page")
	public synchronized String getPage() {
		return page;
	}

	public synchronized void setPage(String page) {
		this.page = page;
	}
	
}
